﻿Public Class photolist
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        Dim id As String = ""
        If Not (Request.QueryString("UserName") Is Nothing) Then
            If Request.QueryString("UserName").ToString() <> "" Then
                ListView1.DataSourceID = "SqlDataSource2"
                SqlDataSource2.DataBind()
                lbldata.Text = "Photos of " + Request.QueryString("UserName").ToString()
            Else
                ListView1.DataSourceID = "SqlDataSource1"
                SqlDataSource1.DataBind()
                lbldata.Text = ""
            End If
        End If
    End Sub

End Class